package com.tansun.easycare.rule.rulegroup.service;

import java.util.List;

import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.exception.BizException;
import com.tansun.easycare.rule.rulegroup.entity.RuleEntry;
import com.tansun.easycare.rule.rulegroup.entity.RuleGroup;
import com.tansun.easycare.rule.rulemange.entity.RuleManage;

public interface RuleEntryService extends RuleBaseService<RuleEntry> {

    /**
     * 保存条目
     */
    void saveOrUpdate(RuleEntry ruleEntry) throws BizException;
    
    void saveRuleEntryRef(List<RuleGroup> groupinfo) throws BizException;
    
    /**
     * 修改顺序
     */
    void shiftSort(RuleManage ruleManage, String entryId1, String entryId2, String shiftType) throws BizException;
    /**
     * 根据id查询
     * @param ids
     * @return
     */
    List<RuleEntry> findListByIds(List<String> ids);

    void deleteByMutilVersion(RuleManage ruleManage, List<String> versions);
}
